package mdb.com.vn.web.beans;

import org.primefaces.event.SelectEvent;

import mdb.com.vn.web.utils.FacesContextUtils;

public abstract class BaseBean {
	
	public abstract void prepareEdit();
	public abstract void prepareAdd();
	
	public abstract void doDelete();
	public abstract void doAdd();
	
	public abstract void handleWindowClose();
	public abstract void onRowSelect(SelectEvent event);
	
	public void addErrorMessage(String message){
		FacesContextUtils.addErrorExceptionMessage(message);
	}
	
	public void addInfoMessage(String message){
		FacesContextUtils.addInfoMessage(message);
	}

}
